package com.ruoyi.enums;

public enum BasicInformationEnum {
    MINE_CODE(1, "130284030001"),
    MINE_NAME(2, "冀东水泥滦州有限责任公司河北省滦州市杨柳庄水泥灰岩矿"),
    FILE_BASIC_INFO(3, "D:\\aky\\DATA_SYNC\\src\\130284030001\\ksbpjc\\"),
    CATEGORY_FILE_NAME(4, "130284030001_LTCDJC_"),
    REAL_FILE_TIME(5, "130284030001_LTCDSS_"),
    FILE_HEADER(6,"130284030001;冀东水泥滦州有限责任公司河北省滦州市杨柳庄水泥灰岩矿;"),
    MINE_FILE_HEADER(9,"130284030001;冀东水泥滦州有限责任公司河北省滦州市杨柳庄水泥灰岩矿;KSBPJC;矿山边坡安全系统;山东竟道;2030-12-30;"),
    POWER_FAILURE_FAULT(7,"00000010"),
    EQUIPMENT_FAILURE(8,"00010000"),
   STATION_CODING(9,"13028403000102100000"),
    ;


    private int code;
    private String desc;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    BasicInformationEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static BasicInformationEnum getByCode(int id){
        for(BasicInformationEnum transactType : values()){
            if (transactType.getCode() == id) {
                //获取指定的枚举
                return transactType;
            }
        }
        return null;
    }
}
